<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/base.css" />
        <script type="text/javascript">
            function setHeight(){
            	if(document.getElementById("aside"))
                	document.getElementById("aside").style.height = document.documentElement.clientHeight -60 +"px";
                if(document.getElementById("mask"))
                	document.getElementById("mask").style.height = document.documentElement.clientHeight -60 +"px";
                if(document.getElementById("main"))
                	document.getElementById("main").style.height= document.documentElement.clientHeight -120 +"px";
            };
            window.onload = setHeight;
            window.onresize = setHeight;
        </script>
    </head>
    <body>
        <div id="wrapper">
		
            <div id="header">
                <h1 class="logo">
                    <a href="#" title="<?php echo CHtml::encode(Yii::app()->name); ?>"><?php echo CHtml::encode(Yii::app()->name); ?></a>
                </h1>
				<!-- /Logo -->
				
				<?php if(isset($this->breadcrumbs)):?>
		            <?php $this->widget('zii.widgets.CBreadcrumbs', array(
						'separator'=> '<i>»</i>',
		                'links'=> $this->breadcrumbs, // Property 'breadcrumbs' is defined in the view files.
		            )); ?>
		        <?php endif; ?>
				<!-- /Breadcrumbs -->
				
                <div class="login-info"><span>Welcome: <?php echo CHtml::encode(Yii::app()->user->name); ?></span><em>|</em><?php echo CHtml::link('My account',array('user/admin')); ?><em>|</em><?php echo CHtml::link('Logout',array('site/logout')); ?></div>
				<!-- /Login info -->
            </div>
            
            <?php echo $content; ?>
            
        </div>
    </body>
</html>         
